add On Impression Listener
Registers an OnImpressionListener to receive notifications when content generates an impression.
An "impression" typically signifies that a piece of content has been displayed to the user according to defined criteria (e.g., viewed for a certain duration or a certain percentage of its area was visible). This is often used for advertising metrics or content engagement tracking.
Call removeOnImpressionListener when the listener is no longer needed to avoid memory leaks.
Parameters
listener
The non-null OnImpressionListener instance to register.
See also
Throws
if listener
is null.